﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.Model
{
    public class BaseEntity
    {
        [Key]
        public int Id { get; set; }

        [Required(ErrorMessage = "{0}不能空")]
        [Display(Name = "软删除")]
        public int DeleteId { get; set; } = 1;

        [Required(ErrorMessage = "{0}不能空")]
        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; } = DateTime.Now;

        [Required(ErrorMessage = "{0}不能空")]
        [Display(Name = "修改时间")]
        public DateTime UpdateTime { get; set; } = DateTime.Now;
    }
}
